 |
API Documentation
|
|
|
72 void setVar (
const char* name,
bool value) ;
79 void setVar (
const char* name,
int value) ;
86 void setVar (
const char* name,
float value) ;
93 void setVar (
const char* name,
double value) ;
100 void setVar (
const char* name,
const char* value) ;
115 void setObject (
const char* name,
const char* userTypeName,
void* value) ;
131 bool getVar (
const char* name,
bool defaultValue) ;
139 int getVar (
const char* name,
int defaultValue) ;
147 float getVar (
const char* name,
float defaultValue) ;
155 double getVar (
const char* name,
double defaultValue) ;
163 const char*
getVar (
const char* name,
const char* defaultValue) ;
180 void*
getObject (
const char* name,
const char* userTypeName =
nullptr) ;
void setName(const char *name)
double getVar(const char *name, double defaultValue)
Defines an environment in which scripts can execute.
Definition: Environment.h:14
Encompasses all API of component NilkinsScripts.
Definition: Environment.h:7
int getVar(const char *name, int defaultValue)
Holds information and allow control over a namespace in a scripting environment.
Definition: Namespace.h:12
Function * getFunc(const char *name)
void setVar(const char *name, const char *value)
UserType * getUserType(const char *name)
Holds all information for a script.
Definition: Script.h:14
bool isNamespaceSet(const char *name)
void setEnvironmentFor(INTERPRETER interpretType)
std::vector< unsigned char > serializeScriptObject(const ScriptObjectReference &reference, bool forwardUserDataOwnership=false)
void setVar(const char *name, double value)
ScriptObjectReference getScriptFunction(const char *name)
void setVar(const char *name, const ScriptObjectReference &value)
Represents a user type and all the information and control related.
Definition: UserType.h:27
std::vector< FunctionParameter > DataStack
A data stack, mainly used for parameters.
Definition: FunctionDefines.h:8
void setObject(const char *name, const char *userTypeName, void *value)
Namespace * setNamespace(const char *name)
void setVar(const char *name, float value)
UserType * setUserType(const char *name)
A reference over an object in the scripting environment.
Definition: ScriptObjectReference.h:30
void setVar(const char *name, bool value)
bool callScriptFunction(const ScriptObjectReference &reference, const DataStack &args, DataStack &expectedOutput)
bool isFuncSet(const char *name)
bool getVar(const char *name, bool defaultValue)
bool isVarSet(const char *name)
const char * getName() const
Namespace * getNamespace(const char *name)
ScriptObjectReference deserializeScriptObject(const std::vector< unsigned char > &object)
Holds information about the execution result of a script in an environment.
Definition: ExecutionResult.h:26
INTERPRETER
Supported scripting environments.
Definition: Interpreter.h:12
void requestGarbageCollection()
ScriptObjectReference getVar(const char *name)
const char * getVar(const char *name, const char *defaultValue)
float getVar(const char *name, float defaultValue)
bool execute(const Script &script)
Function * setFunc(const char *name)
Holds information, and controls, over a function in a scripting environment.
Definition: Function.h:42
bool isUserTypeSet(const char *name)
void * getObject(const char *name, const char *userTypeName=nullptr)
const ExecutionResult & getLastExecutionResult() const
void setVar(const char *name, int value)